<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <style>
    .father {
      width: 400px;
      height: 600px;
      border: 1px solid #000;
      margin-right: 20px;
      overflow: hidden;
      margin-bottom: 60px;
    }
    .child {
      width: 100px;
      height: 100px;
      margin-top: 20px;
      background-color: red;
    
    
      /* margin: auto; */
    }
    .f1 {
      margin-nottom: 100px;
      width: 200px;
      height: 300px;
      border: 1px solid red;
    }
  </style>
</head>
<body>
  <div class="f1"></div>
  <div class="father">
    <div class="child">666</div>
  </div>
</body>
</html>